home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / SC68KBuildAll < prev   
Encoding:
Text File  |  1996-04-25  |  2.1 KB  |  87 lines  |  [TEXT/MPS ]

  1. # Full build script for Symantec 68K 
  2. #
  3. #    SC68KBuildAll [Debug|Release] [Clean] [ODFLibrary] [NoExamples]
  4. #
  5. #        [Debug|Release] :    debug or release build. Debug by default
  6. #        [Clean]            :    Will delete all cpp.o files
  7. #        [ODFLibrary]    :    Will only build the ODFLibrary
  8. #        [NoExamples]    :    Will not build the ODF examples
  9. #
  10. # This script assumes that you have placed UserStartup•ODF in your MPW folder.
  11.  
  12. if {ODF} == ""
  13.     Beep
  14.     Beep
  15.     Echo "### You have not installed the 'UserStartup•ODF' file (or 'UserStartupTS•ODF' for ToolServer)." 
  16.     Echo "### Please do so before continuing. Those files are located in the 'MPW-ToolServer Additions'" 
  17.     Echo "### folder inside the ODFDev folder. Don't forget to relaunch MPW (or ToolServer)." 
  18.     exit
  19. end
  20.  
  21. Set TheBuild ""
  22. Set Clean 0
  23. Set Examples 1
  24. Set StaticLib 1
  25.  
  26. For item in {"Parameters"}
  27.     if {item} == Debug
  28.         Set TheBuild "Debug"
  29.     else if {item} == debug
  30.         Set TheBuild "Debug"
  31.     else if {item} == Release
  32.         Set TheBuild Release
  33.     else if {item} == release
  34.         Set TheBuild Release
  35.     else if {item} == Clean
  36.         Set Clean 1
  37.     else if {item} == clean
  38.         Set Clean 1
  39.     else if {item} == ODFLibrary
  40.         Set StaticLib 0
  41.         Set Examples 0
  42.     else if {item} == odflibrary
  43.         Set StaticLib 0
  44.         Set Examples 0
  45.     else if {item} == NoExamples
  46.         Set Examples 0
  47.     else if {item} == noexamples
  48.         Set Examples 0
  49.     else if {item} == Noexamples
  50.         Set Examples 0
  51.     else 
  52.         Echo "SC68KBuildAll [Debug|Release] [Clean] [NoExamples]"
  53.         exit
  54.     end
  55. End
  56.  
  57. if {TheBuild} == ""
  58.     Set TheBuild Debug
  59. end
  60.  
  61. Set Exit 0
  62. if {Clean} == 1
  63.     Echo "Cleaning object files"
  64.     delete -y "{ODF}SL68K{TheBuild}:Obj:"≈
  65.     delete -y "{ODF}SC68K{TheBuild}:Obj:"≈
  66.     if {Examples} == 1
  67.         For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
  68.             delete -y "{ODFDev}{example}:SC68K{TheBuild}:Obj:"≈
  69.         End
  70.     End
  71. End
  72. Set Exit 1
  73.  
  74. # ----- Build ODF Shared Library
  75. "{ODF}SL68K{TheBuild}:Build"
  76.  
  77. # ----- Build ODF Static Libraries
  78. if {StaticLib} == 1
  79.     "{ODF}SC68K{TheBuild}:Build"
  80. End
  81.  
  82. # ----- Build ODF Samples
  83. if {Examples} == 1
  84.     For example In Bitmap Button Clock Container Draw Embed Form Hello Nothing Table
  85.         "{ODFDev}{example}:SC68K{TheBuild}:Build"
  86.     End
  87. End